import os
import osconfig
from build_tools import *

pwd = PresentDir()
CPPPATH=[]
CPPDEFINES=[]

src = Split('''
src/tts_audio.c
src/tts_json.c
src/tts_url.c
src/tts_sample.c
src/tts_player_wav.c
''')

CPPPATH += [pwd + '/include']

LOCAL_CCFLAGS = ''

if osconfig.CROSS_TOOL == 'keil':
    LOCAL_CCFLAGS += ' --gnu'

group = AddCodeGroup('chaoTTS', src, depend = ['TTS_AIVOICE_SUPPORT'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS, CPPDEFINES = CPPDEFINES)

Return('group')
